<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title> 找回密码 - LooPo-乐铺 </title>
<?php include VIEWS.'header.html'?>
</head>

<body>
<?php include VIEWS.'validation.html'?>
<?php include VIEWS.'topbar.html'?>

<div id="content">

    <?php include VIEWS.'leftnav.html'?>

    <div id="right">

    <h1>找回密码</h1>

<?php if ($code['forgotpwd'] == 8):?>
<div class="goodbox roundNormal">&nbsp;&nbsp;&nbsp;密码稍候将会发送到您的注册信箱，请注意查收。</div><br clear="all">
<iframe width="0" height="0" src="/shell/sendmail.php" style="display:none"></iframe>
<?php else:?>

<?php if ($code['forgotpwd'] & 16):?><div class="errbox roundNormal">&nbsp;&nbsp;&nbsp;密码在发送到您的注册信箱时发生错误，请<a href="/aboutus.php#contactus">联系我们</a>解决。</div><br clear="all"><?php endif;?>
<?php if ($code['forgotpwd'] & 4):?><div class="errbox roundNormal">&nbsp;&nbsp;&nbsp;您输入的用户名和注册时的 Email 信箱不匹配。需要帮助？请 <a class="white" href="/faq.php/25">点击这里</a></div><br clear="all"><?php endif;?>
<?php if ($code['forgotpwd'] & 1 || $code['forgotpwd'] & 2):?><div class="errbox roundNormal">&nbsp;&nbsp;&nbsp;请修正下列错误信息：</div><br clear="all"><?php endif;?>


<form method="post" name="forgotpwdform" id="forgotpwdform" action="/forgotpwd.php">
<table>
<tr><td>会员名：</td><td><div class="errorbox-<?php echo ($code['forgotpwd'] & 1) ? 'bad' : 'good'?>"><input title="请输入正确的会员名" class="input1 required" id="username" type="text" name="username" value="<?php echo $data['username']?>" size="26" /><div class="errormsg"><?php if ($code['forgotpwd'] & 1)  echo '请输入正确的会员名'?></div></div></td></tr>
<tr><td>Email：</td><td><div class="errorbox-<?php echo ($code['forgotpwd'] & 2) ? 'bad' : 'good'?>"><input title="请输入正确的 Email" class="input2 required validate-email" id="email" type="text" name="email" value="<?php echo $data['email']?>" size="26" /><div class="errormsg"><?php if ($code['forgotpwd'] & 2) echo '请输入正确的email'?></div></div></td></tr>
<tr><td colspan="2"><br /><input id="sbtn" class="bluebtn" type="submit" value="找回我的密码" name="Submit" tabindex="1" /></td></tr>
</table>
</form>

<script type="text/javascript">
<!--
new Validation('forgotpwdform',{useTitles:true,stopOnFirst:true});
if ($F('email') == "") $('email').focus();
if ($F('username') == "") $('username').focus();
//-->
</script>

<?php endif;?>

    </div>
</div>

<?php include VIEWS.'copyright.html'?>

</body>
</html>
